<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Http\RedirectResponse;

class PublicController extends Controller
{
	
	public function login(Request $request){
      
      	if($request->isMethod('post')){ 
          	$input = $request->all();
          	if(empty($input['username']) || empty($input['password'])){
            	return redirect('admin/login');
            }else{
            	dump($input);
            }
          
		}else{
        	return view('Admin.login');
        }
	}

}
